﻿using System;
using System.Data.Common;
using System.Collections.Generic;

namespace SimpleService.Database
{
    interface IDbOperation
    {
        DbConnection GetConnection();
        DbConnection GetConnection(string connectionString);
        DbCommand GetCommand();
        DbCommand GetCommand(string sqlText, DbConnection conn);
        DbDataAdapter GetDataAdapter();
        DbDataAdapter GetDataAdapter(DbCommand cmd);
        DbTransaction GetTransaction(DbConnection conn);
    }
}
